package com.linkwedo.saas.users;

import java.util.List;

import com.linkwedo.saas.domain.Project;
import com.linkwedo.saas.domain.member.User;
import com.linkwedo.saas.project.ProjectService;
import com.opensymphony.xwork2.ActionSupport;

public class LoadUserAction extends ActionSupport{
	private static final long serialVersionUID = 8190003683775267839L;
	List<User> list;
	List<Project> projectlist;
	private UserService userService;
	private ProjectService projectService;

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public List<User> getList() {
		return list;
	}

	public void setList(List<User> list) {
		this.list = list;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	public String execute() throws Exception {
	
		//ProjectDao pdao=new ProjectDao();
		list=getUserService().findAll();
		projectlist = getProjectService().findAll();
			return "SUCCESS";
	}

	public List<Project> getProjectlist() {
		return projectlist;
	}

	public void setProjectlist(List<Project> projectlist) {
		this.projectlist = projectlist;
	}

	public ProjectService getProjectService() {
		return projectService;
	}

	public void setProjectService(ProjectService projectService) {
		this.projectService = projectService;
	}
	
	}
